home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
aminet
/
amoslist0993.lzh
/
AMOSLIST2
/
000049_amos-request@svcs1.digex.net_Wed Sep 1 17:22:45 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-09-03
|
2KB
Received: from nextsun.INS.CWRU.Edu by access.digex.net with SMTP id AA05969
(5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Wed, 1 Sep 1993 17:22:42 -0400
Received: from svcs1.digex.net by nextsun.INS.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.5.2-freenet-gw)
id AA10555; Wed, 1 Sep 93 16:18:59 -0400 (from amos-request@svcs1.digex.net )
Received: by svcs1.digex.net id AA08922
(5.65c/IDA-1.4.4 for amos-list-out); Wed, 1 Sep 1993 15:00:44 -0400
Received: from access.digex.net by svcs1.digex.net with SMTP id AA08918
(5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Wed, 1 Sep 1993 15:00:42 -0400
Received: from vax.mbhs.edu by access.digex.net with SMTP id AA28368
(5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Wed, 1 Sep 1993 15:00:38 -0400
Message-Id: <199309011900.AA28368@access.digex.net>
Date: 1 Sep 93 14:43:00 EST
From: "Andrew Church" <95ACHURCH@vax.mbhs.edu>
Subject: Re: Compiler & Disc problems
To: "amos-list" <amos-list@access.digex.net>
Status: RO
> This is my first posting to this fine list. Greetings to
>everybody! At the moment I have two big problems with an otherwise
>finished game. The code is about 180 Kb and is done in AMOS v1.36 (I
>think).
Could you send it to me? I'd like to see it.
> Problem no 1:
> Some routines are a bit slow, so I tried compiling it. The compiled
>version runs, but most global integer variables get strange values
>like -9439540, which is rather disturbing. Any ideas of what goes
>wrong?
Make sure you declare the variables as Global *before* you initialise
them.
> Problem no 2:
> As the game may take several hours to finish, I've included a save.
>feature. It writes a sequential file to disc of the important
>variables, which amounts to about 11 Kb. The trouble is that writing
>and reading those files is VERY SLOW going. Where am I going wrong?
What in the world do you need 11k of variables for? I've got a
very large game too (also about 180k of code; it's an RPG), but I only
need 122 bytes to store all the necessary information.
If a lot of your data is in an array or two, you can use:
Ssave 1,Varptr(ARRAY(0)) To Varptr(ARRAY(0))+ARRAY_LEN*4
to save your data (AMOS 1.36 does have the Ssave command, doesn't it?).
--Andy Church